package com.team.arms.public_data.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.team.arms.public_data.domain.ListInformation;
import com.team.arms.public_data.domain.dto.ListInformationDto;
import com.team.arms.public_data.domain.vo.ListInformationVo;
import com.team.arms.public_data.service.ListInformationService;
import com.team.arms.public_data.mapper.ListInformationMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 */
@Service
public class ListInformationServiceImpl extends ServiceImpl<ListInformationMapper, ListInformation>
    implements ListInformationService{

    @Autowired
    private ListInformationMapper listInformationMapper;

    @Override
    public int insertAll(ListInformation listInformation) {
        return listInformationMapper.insertAll(listInformation);
    }

    @Override
    public List<ListInformationVo> selectList() {
        return listInformationMapper.selectList();
    }

    @Override
    public int deleteByListInformationIds(List<String> id) {
        return listInformationMapper.deleteBatchIds(id);
    }

    @Override
    public int deleteByListInformationId(String id) {
        return listInformationMapper.deleteById(id);
    }

    @Override
    public List<ListInformationVo> selectListInformation(ListInformationDto listInformationDto) {
        return listInformationMapper.selectListInformation(listInformationDto);
    }

    @Override
    public ListInformationVo selectById(String id) {
        return listInformationMapper.selectAllByListInformationId(id);
    }

    @Override
    public List<ListInformationVo> selectByFiled(String field, String content) {
        return listInformationMapper.selectByFiled(field, content);
    }
}




